//
//  MessageCenterModel.h
//  carcareIOS
//
//  Created by ileo on 16/9/5.
//  Copyright © 2016年 chezheng. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ValuePropertyObject.h"


typedef NS_ENUM(NSInteger, Message_Type){
    Message_GPSFENCE= 16,//安全区域
    Message_UPDATESTYLE = 15,//上包
    Message_FIRE = 14,//点火
    Message_VLOTAGE = 13,//低电压报警
    Message_RECENTTRAVEL = 11,//最近一次行程
    Message_SHAKE = 12,//震动报警
    Message_STOP = 0,//停驶奖励
    Message_RUNNING = 1,//驾驶奖励
    Message_FRISTDRVING = 3,//首次行程奖励
    Message_INVITREWARD = 5,//邀请奖励
    Message_MAINTANCE = 8,//保养通知
    Message_CUSTOM = 18,//自定义通知
};

typedef NS_ENUM(NSInteger, MessageCenter_Type){
    MessageCenter_Car = 1,//车辆
    MessageCenter_Service = 2,//服务
    MessageCenter_Insurance = 3,//保险
    MessageCenter_System = 4,//系统
};

@class MessageModel;

@interface MessageCenterModel : ValuePropertyObject

@property (nonatomic, assign) MessageCenter_Type type;//通知分类
@property (nonatomic, assign) NSInteger unread;//未读数
@property (nonatomic, copy) NSArray<MessageModel *> *info;//

@property (nonatomic, strong) MessageModel *newestMessage;//最新消息
@property (nonatomic, assign) NSInteger firstID;//最新的ID
@property (nonatomic, assign) NSInteger lastID;//最后的ID

@end

@interface MessageModel : ValuePropertyObject

@property (nonatomic, assign) NSInteger ID;
@property (nonatomic, copy) NSString *TITLE;//标题
@property (nonatomic, copy) NSString *ABSTRACT;//内容
@property (nonatomic, copy) NSString *TIME_STAMP;//发生时间
@property (nonatomic, copy) NSString *CDT;//消息发送时间
@property (nonatomic, copy) NSString *IMG_URL;//图片地址
@property (nonatomic, copy) NSString *JUMP_URL;//跳转地址
@property (nonatomic, copy) NSString *EXPIRED_DATE;//失效时间
@property (nonatomic, assign) BOOL STATUS;//是否已读
@property (nonatomic, assign) Message_Type TYPE;//通知类型

@property (nonatomic , assign) BOOL isExpired;//是否已失效
@property (nonatomic , copy) NSString * dateTime;//时间日期 年-月-日
@property (nonatomic , copy) NSString * carMessageTime;//车辆消息页面所用 时:分:秒类型
@property (nonatomic , copy) NSString * messageTimeDate;//其他消息页面 所用  年-月-日 时:分

@end




